import 'package:fish_redux/fish_redux.dart';

enum SafeOrderViewAction {
  action,
  onGetData,
  onTapSign,
  onTapOrderPic,
  onTapResultPic,
}

class SafeOrderViewActionCreator {
  static Action onAction() {
    return const Action(SafeOrderViewAction.action);
  }

  static Action onGetData(data) {
    return Action(SafeOrderViewAction.onGetData, payload: data);
  }

  static Action onTapSign() {
    return const Action(SafeOrderViewAction.onTapSign);
  }

  static Action onTapOrderPic(data) {
    return Action(SafeOrderViewAction.onTapOrderPic, payload: data);
  }

  static Action onTapResultPic(model, data) {
    return Action(SafeOrderViewAction.onTapResultPic,
        payload: {'model': model, 'data': data});
  }
}
